#ifndef BANISEARCH_H_
#define BANISEARCH_H_

#include <QList>
#include <QString>
#include <QSqlDatabase>

class QListWidget;

class BaniSearch
{
public:
	BaniSearch();
	virtual ~BaniSearch();
	void search( QString );
	bool setWriter( int );
	bool setPage( int );
	bool setPage( int, int);
	bool setRaag( int );
	bool setMode( int );
	
	static int SearchModeAll;
	static int SearchModeFirstLetters;
	static int searchModePhrase;
	static int searchModeAny;
	
private: 
	QSqlDatabase db; // =  QSqlDatabase::addDatabase("QSQLITE");
	QString queryStr;
	
	QString getSearchSQLt();
	
};

#endif /*BANISEARCH_H_*/
